﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MetaSharp.Transformation.Patterns
{
    public class DefaultPattern : Pattern
    {
        public DefaultPattern()
            : base(PatternKind.Default)
        { }

        public override PatternMatch Compile()
        {
            return s => Target(s);
        }

        private static async Task<IMatch> Target(IScope scope)
        {
            return await Transformation.Match.Default(scope);
        }
    }
}
